package ${package.ServiceImpl};

import ${package.Entity}.${entity};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import com.xy.framework.base.dao.IBaseDao;
import com.xy.framework.exceptions.ValidateParamException;

/**
 * <p>
 * ${table.comment!} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Service("${table.serviceName?substring(1)?uncap_first}")
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${entity}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${entity}, String> implements ${table.serviceName} {
	@Resource
	private ${table.mapperName} ${table.mapperName?uncap_first};

	@SuppressWarnings("rawtypes")
	@Override
	protected IBaseDao getBaseDao() {
		return this.${table.mapperName?uncap_first};
	}

	@Override
	public void validateEntity(${entity} e) throws ValidateParamException {
		// TODO Auto-generated method stub
		
	}
}
</#if>

	

